package com.jzy.gulimall.authserver.feign;

import com.jzy.common.utils.R;
import com.jzy.gulimall.authserver.vo.SocialUser;
import com.jzy.gulimall.authserver.vo.UserLoginVo;
import com.jzy.gulimall.authserver.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author jzy
 * @date 2020/9/17 10:56
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {

    /**
     * 注册
     * 保存会员信息
     */
    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegisterVo userRegisterVo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo memberLoginVo);

    @PostMapping("/member/member/oauth/login")
    R weiboLogin(@RequestBody SocialUser socialUser);
}
